package com.personal.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.personal.modules.sys.dao.TSysDeptDao;
import com.personal.modules.sys.entity.TSysDeptEntity;
import com.personal.modules.sys.service.TSysDeptService;



@Service("tSysDeptService")
public class TSysDeptServiceImpl implements TSysDeptService {
	@Autowired
	private TSysDeptDao tSysDeptDao;
	
	@Override
	public TSysDeptEntity queryObject(Long deptId){
		return tSysDeptDao.queryObject(deptId);
	}
	
	@Override
	public List<TSysDeptEntity> queryList(Map<String, Object> map){
		return tSysDeptDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tSysDeptDao.queryTotal(map);
	}
	
	@Override
	public void save(TSysDeptEntity tSysDept){
		tSysDeptDao.save(tSysDept);
	}
	
	@Override
	public void update(TSysDeptEntity tSysDept){
		tSysDeptDao.update(tSysDept);
	}
	
	@Override
	public void delete(Long deptId){
		tSysDeptDao.delete(deptId);
	}
	
	@Override
	public void deleteBatch(Long[] deptIds){
		tSysDeptDao.deleteBatch(deptIds);
	}
	
}
